<?php include template("manage_header");?>

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="leader">
	<div class="dashboard" id="dashboard">
		<ul><?php echo mcurrent_guest($selector); ?></ul>
	</div>
	<div id="content" class="clear mainwide">
        <div class="clear box">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
					<h2>编辑</h2>
					<span class="headtip">（<?php echo $guest['title']; ?>）</span>
				</div>
                <div class="sect">
				<form id="login-user-form" method="post" action="/manage/guest/edit.php?id=<?php echo $guest['id']; ?>" enctype="multipart/form-data" class="validator">
					<input type="hidden" name="id" value="<?php echo $guest['id']; ?>" />
					<div class="wholetip clear"><h3>1、嘉宾基本信息</h3></div>
					<div class="field">
						<label>真实姓名</label>
						<input type="text" size="30" name="name" id="guest-create-name" class="f-input" value="<?php echo $guest['name']; ?>" require="true" datatype="require"/>
					</div>
					<div class="field">
                        <label>手机号码</label>
                        <input type="text" size="30" name="mobile" id="guest-create-mobile" class="number" maxLength="11" value="<?php echo $guest['mobile']; ?>"/>
						<span class="inputtip">eg: 13581950269</span>
					</div>
					<div class="field">
                        <label>嘉宾Email</label>
                        <input type="text" size="30" name="email" id="guest-create-email" class="f-input" value="<?php echo $guest['email']; ?>"/>
						<span class="hint">eg: mzt9291@126.com</span>
					</div>
					<div class="field">
                        <label>年龄</label>
                        <input type="text" size="30" name="age" id="guest-create-age" class="number" maxLength="2" value="<?php echo $guest['age']; ?>"/>
						<span class="inputtip">eg: 25</span>
					</div>
					<div class="field">
                        <label>性别</label>
                        <div style="margin-top:5px;" id="guest-create-gender">
							<input type="radio" name="gender" value="M" <?php if($guest['gender'] == 'M') echo 'checked';?>/>&nbsp;男&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="radio" name="gender" value='F'<?php if($guest['gender'] == 'F') echo 'checked';?>/>&nbsp;女&nbsp;
						</div>
					</div>
					<div class="field">
                        <label>身高</label>
                        <input type="text" size="30" name="height" id="guest-create-height" class="number" maxLength="3" value="<?php echo $guest['height']; ?>" />
						<span class="inputtip">厘米</span>
                        <label>体重</label>
                        <input type="text" size="30" name="weight" id="guest-create-weight" class="number" maxLength="3" value="<?php echo $guest['weight']; ?>" />
						<span class="inputtip">公斤</span>
					</div>
					<div class="field">
                        <label>星座</label>
                        <select name="constellation" class="f-input" style="width:160px;" id="guest-create-constellation" ><?php echo Utility::Option($constellations, $guest['constellation']);?></select>
					</div>
					<div class="field">
                        <label>学历</label>
                        <select name="degree" class="f-input" style="width:160px;" id="guest-create-degree"><?php echo Utility::Option($degrees, $guest['degree']); ?></select>
						<span class="inputtip"><?php echo $guest['degree']; ?></span>
					</div>
					<div class="field">
                        <label>职业</label>
                        <input type="text" size="30" name="career" id="guest-create-career" class="f-input" value="<?php echo $guest['career']; ?>" />
						<span class="hint">eg: 计算机工程师，自由职业</span>
					</div>
					<div class="field">
						<label>现居城市</label>
						<input type="text" size="30" name="resident" id="guest-create-resident" class="f-input" value="<?php echo $guest['resident']; ?>" />
						<span class="hint">eg: 北京海淀</span>
					</div>
					<div class="field">
						<label>家乡</label>
						<input type="text" size="30" name="hometown" id="guest-create-hometown" class="f-input" value="<?php echo $guest['hometown']; ?>" />
						<span class="hint">eg: 辽宁抚顺</span>
					</div>
					<div class="field">
						<label>年薪</label>
						<input type="text" size="30" name="salary" id="guest-create-salary" class="number" value="<?php echo $guest['salary']; ?>" />
						<span class="inputtip">万</span>
						<span class="hint">eg:50w</span>
					</div>
					<div class="field">
						<label>爱好</label>
						<div style="float:left;"><textarea cols="45" rows="5" name="hobby" id="guest-create-hobby" class="f-textarea" datatype="require" require="true"><?php echo $guest['hobby'];?></textarea></div>
						<span class="hint">eg: 高尔夫球，羽毛球，跑步，钢琴，旅游</span>
					</div>
					<div class="wholetip clear"><h3>2、嘉宾特别信息</h3></div>
					<div class="field">
						<label>嘉宾标题</label>
						<input type="text" size="30" name="title" id="guest-create-title" class="f-input" value="<?php echo $guest['title']; ?>" require="true" datatype="require"/>
						<span class="hint">金融才俊——李四</span>
					</div>					
					<div class="field">
						<label>倾心一语</label>
						<div style="float:left;"><textarea cols="45" rows="5" name="summary" id="guest-create-summary" class="f-textarea" datatype="require" require="true"><?php echo $guest['summary']; ?></textarea></div>
						<span class="hint">爱情是将错就错</span>
					</div>
					<div class="field">
						<label>开始日期</label>
						<input type="text" size="10" name="begin_time" id="guest-create-begin-time" class="date" value="<?php echo date('Y-m-d', $guest['begin_time']); ?>" maxLength="10" />
						<label>结束日期</label>
						<input type="text" size="10" name="end_time" id="guest-create-end-time" class="date" value="<?php echo date('Y-m-d', $guest['end_time']); ?>" maxLength="10" />
						<span class="hint">征友开始于开始日期00:00:00，结束于结束日期00:00:00</span>
					</div>
					<div class="field">
						<label>嘉宾照片</label>
						<input type="file" size="30" name="image" id="guest-create-image" class="f-input"/>
						<?php if($guest['image']){?><span class="hint"><?php echo guest_media($guest['image']); ?></span><?php }?>
					</div>
					<div class="field">
						<label>嘉宾照片1</label>
						<input type="file" size="30" name="image1" id="guest-create-image1" class="f-input" />
						<?php if($guest['image1']){?><span class="hint"><?php echo guest_media($guest['image1']); ?></span><?php }?>
					</div>
					<div class="field">
						<label>嘉宾照片2</label>
						<input type="file" size="30" name="image2" id="guest-create-image2" class="f-input" />
						<?php if($guest['image2']){?><span class="hint"><?php echo guest_media($guest['image2']); ?></span><?php }?>
					</div>
					<div class="field">
						<label>嘉宾照片3</label>
						<input type="file" size="30" name="image3" id="guest-create-image3" class="f-input" />
						<?php if($guest['image3']){?><span class="hint"><?php echo guest_media($guest['image3']); ?></span><?php }?>
					</div>
					<div class="field">
						<label>嘉宾视频短片</label>
						<input type="file" size="30" name="vcr" id="guest-create-vcr" class="f-input" />
						<?php if($guest['vcr']){?><span class="hint"><?php echo guest_media($guest['vcr']); ?></span><?php }?>
					</div>
					<div class="field">
						<label>朋友评价</label>
						<div style="float:left;"><textarea cols="45" rows="5" name="judge" id="guest-create-judge" class="f-textarea" datatype="require" require="true"><?php echo $guest['judge']?></textarea></div>
					</div>
					<div class="field">
						<label>倾心细语</label>
						<div style="float:left;"><textarea cols="45" rows="5" name="detail" id="guest-create-detail" class="f-textarea editor"><?php echo $guest['detail']; ?></textarea></div>
						<span class="hint">嘉宾个人内心独白</span>
					</div>
					<div class="wholetip clear"><h3>3、系统信息（勿轻易修改）</h3></div>
					<div class="field">
						<label>系统显示</label>
						<div style="margin-top:5px;" id="guest-create-system">
							<input type="radio" name="system" value="Y" <?php if($guest['system'] == 'Y') echo 'checked';?>/>&nbsp;是&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="radio" name="system" value='N'<?php if($guest['system'] == 'N') echo 'checked';?>/>&nbsp;否&nbsp;
						</div>
					</div>
					<div class="field">
						<label>征友状态</label>
						<div style="margin-top:5px;" id="guest-create-status">
							<input type="radio" name="status" value="Y" <?php if($guest['status'] == 'Y') echo 'checked';?>/>&nbsp;是&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="radio" name="status" value='N'<?php if($guest['status'] == 'N') echo 'checked';?>/>&nbsp;否&nbsp;
						</div>
					</div>
					<div class="field">
						<label>人数预设</label>
						<input type="text" size="30" name="now_number" id="guest-create-now_number" class="number" maxLength="10" value="<?php echo $guest['now_number']; ?>" />
					</div>
					<div class="act">
						<input type="submit" value="好了，提交" name="commit" id="leader-submit" class="formbutton"/>
					</div>
<!--					
					<input type="submit" value="好了，提交" name="commit" id="leader-submit" class="formbutton" style="margin:10px 0 0 120px;"/>
-->
				</form>
                </div>
            </div>
            <div class="box-bottom"></div>
        </div>
	</div>

<div id="sidebar">
</div>

</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->

<?php include template("manage_footer");?>
